package com.hubu.jwxt.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Class {
    /*
    CREATE TABLE `class`  (
  `class_id` int(11) NOT NULL COMMENT '班级ID主键',
  `class_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '班级名称',
  `class_desc` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '班级描述',
  `p_id` int(11) NOT NULL COMMENT '班级所属的专业',
  PRIMARY KEY (`class_id`) USING BTREE,
  INDEX `p_id_c`(`p_id`) USING BTREE,
  INDEX `class_name`(`class_name`) USING BTREE,
  CONSTRAINT `p_id_c` FOREIGN KEY (`p_id`) REFERENCES `professional` (`p_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;
     */

    private int class_id;
    private String class_name;
    private String class_desc;
    private int p_id;
}
